#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Genome data module"""
__author__ = "Lei Chen <hide1713@gmail.com>"


class GenomeRecord(object):
    """Represent a fragment of genome data (read) """
    def __init__(self, read, cog_name, start_pos, end_pos, e_val):
        """
        """
        self._read = read
        self._cog_name = cog_name
        self._start_pos = start_pos
        self._end_pos = end_pos
        self._e_val = e_val

    def __repr__(self):
        """ to string"""
        return "(%s, %s, %4d, %4d, %e)"%(self._read, self._cog_name,self._start_pos,\
                                         self._end_pos, self._e_val)
    def _get_read(self):
        return self._read
    
    read = property(_get_read)
    
    def _get_cog_name(self):
        return self._cog_name
    
    cog_name = property(_get_cog_name)

    def _get_start_pos(self):
        return self._start_pos
    
    start_pos = property(_get_start_pos)
    
    def _get_end_pos(self):
        return self._end_pos
    
    end_pos = property(_get_end_pos)
    
    def _get_e_val(self):
        return self._e_val
    
    e_val = property(_get_e_val)
    
        


    
